﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ex03.GarageLogic
{
    public class FuelCar : FuelVehicle
    {
        private Car m_Car;

        public FuelCar(
            string i_ModelName,
            string i_LicensingNumber,
            List<Wheel> i_Wheels,
            eFuelType i_FuelType,
            float i_MaxFuelLitresAmount,
            eColor i_CarColor,
            eDoorsCount i_DoorsCount)
            : base(i_ModelName, i_LicensingNumber, i_Wheels, i_FuelType, i_MaxFuelLitresAmount)
        {
            m_Car = new Car(i_CarColor, i_DoorsCount);
        }

        public eColor CarColor
        {
            get { return m_Car.CarColor; }
        }

        public eDoorsCount DoorsCount
        {
            get { return m_Car.DoorsCount; }
        }

        public override Dictionary<string, string> GetAllProperties()
        {
            Dictionary<string, string> properties = base.GetAllProperties();

            properties.Add("Color", Enum.GetName(typeof(eColor), m_Car.CarColor));
            properties.Add("Number Of Doors", m_Car.DoorsCount.ToString());
            properties.Add("Vehicle Type", "Fuel Car");

            return properties;
        }
    }
}
